const path = require('path')
import { defineConfig } from 'wxt';

// See https://wxt.dev/api/config.html
export default defineConfig({
    modules: ['@wxt-dev/module-vue'],
    srcDir: "src",             // default: "."
    manifest: {
        permissions: ["activeTab", "tabs", "storage", "scripting", "cookies", "sidePanel", "contextMenus"],
        host_permissions: ['https://haijiao.com/*'],
        name: "haijiao-wxt",
    },
    vite: () => ({
        // Override config here, same as `defineConfig({ ... })`
        // inside vite.config.ts files
        resolve: {
            alias: {
                '~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
            }
        },
    }),
});